package cn.gok.springbootlearning.entity;

import cn.gok.springbootlearning.base.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import javax.persistence.Entity;
import java.util.Date;

/**
 * @ClassName User
 * @Description TODO
 * @Author HP
 * @Date 14:06 2022/7/26
 * @Version 1.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Component
@Entity
public class User extends BaseEntity {
    private String name;
    private Integer age;



    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
